home *** CD-ROM | disk | FTP | other *** search
/ JCSM Shareware Collection 1993 November / JCSM Shareware Collection - 1993-11.iso / cl720 / sst115j.lzh / SSTKEY.H < prev    next >
Text File  |  1992-03-21  |  7KB  |  188 lines

  1. /* ------------------------------------------------------------------------ */
  2. /*                                 sstkey.h                                 */
  3. /*                                                                          */
  4. /*                           keyboard header file                           */
  5. /*                                                                          */
  6. /*      CopyRight (C) 1991,1992  Steven Lutrov.   All rights reserved.      */
  7. /* ------------------------------------------------------------------------ */
  8.  
  9.  
  10. /* ------------------------------------------------------------------------ */
  11. /*                constants used in return of kstate function               */
  12. /* ------------------------------------------------------------------------ */
  13.  
  14. #define K_RIGHTSHIFTDOWN      0x0001
  15. #define K_LEFTSHIFTDOWN       0x0002
  16. #define K_CTRLDOWN            0x0004
  17. #define K_ALTDOWN             0x0008
  18. #define K_SCROLLLOCKON        0x0010
  19. #define K_NUMLOCKON           0x0020
  20. #define K_CAPSLOCKON          0x0040
  21. #define K_INSON               0x0080
  22. #define K_SUSPENDON           0x0800
  23. #define K_SCROLLLOCKDOWN      0x1000
  24. #define K_NUMLOCKDOWN         0x2000
  25. #define K_CAPSLOCKDOWN        0x4000
  26. #define K_INSDOWN             0x8000
  27.  
  28. /* ------------------------------------------------------------------------ */
  29. /*                             key board constants                          */
  30. /* ------------------------------------------------------------------------ */
  31. #define BELL                  0x0007
  32. #define BS                    0x0008
  33. #define TAB                   0x0009
  34. #define ESC                   0x001B
  35. #define ENTER                 0x000D
  36. #define HOME                  0x4700
  37. #define UP                    0x4800
  38. #define PGUP                  0x4900
  39. #define LEFT                  0x4B00
  40. #define RIGHT                 0x4D00
  41. #define END                   0x4F00
  42. #define DOWN                  0x5000
  43. #define PGDN                  0x5100
  44. #define INS                   0x5200
  45. #define DEL                   0x5300
  46.  
  47. #define CTRL_ENTER            0x000A
  48. #define CTRL_HOME             0x77E0
  49. #define CTRL_UP               0xFCE0
  50. #define CTRL_PGUP             0x84E0
  51. #define CTRL_LEFT             0x73E0
  52. #define CTRL_RIGHT            0x74E0
  53. #define CTRL_END              0x75E0
  54. #define CTRL_PGDN             0x76E0
  55. #define CTRL_DOWN             0xFAE0
  56. #define CTRL_TAB              0x9400
  57. #define CTRL_BS               0x0E7F
  58. #define CTRL_FIVE             0x8F00
  59. #define CTRL_INS              0x01FF
  60.  
  61. #define SHIFT_DEL             0x04FF
  62. #define SHIFT_HOME            0x0AFF
  63. #define SHIFT_END             0x0BFF
  64. #define SHIFT_PGUP            0x0CFF
  65. #define SHIFT_PGDN            0x0DFF
  66. #define ALT_BS                0x0E00
  67. #define SHIFT_TAB             0x0F00
  68. #define SHIFT_INS             0x02FF
  69. #define SHIFT_5               0x4C35
  70.  
  71. #define F1                    0x3B00
  72. #define F2                    0x3C00
  73. #define F3                    0x3D00
  74. #define F4                    0x3E00
  75. #define F5                    0x3F00
  76. #define F6                    0x4000
  77. #define F7                    0x4100
  78. #define F8                    0x4200
  79. #define F9                    0x4300
  80. #define F10                   0x4400
  81. #define F11                   0x8500
  82. #define F12                   0x8600
  83.  
  84. #define CTRL_F1               0x5E00
  85. #define CTRL_F2               0x5F00
  86. #define CTRL_F3               0x6000
  87. #define CTRL_F4               0x6100
  88. #define CTRL_F5               0x6200
  89. #define CTRL_F6               0x6300
  90. #define CTRL_F7               0x6400
  91. #define CTRL_F8               0x6500
  92. #define CTRL_F9               0x6600
  93. #define CTRL_F10              0x6700
  94. #define CTRL_F11              0x8900
  95. #define CTRL_F12              0x8A00
  96.  
  97. #define ALT_F1                0x6800
  98. #define ALT_F2                0x6900
  99. #define ALT_F3                0x6A00
  100. #define ALT_F4                0x6B00
  101. #define ALT_F5                0x6C00
  102. #define ALT_F6                0x6D00
  103. #define ALT_F7                0x6E00
  104. #define ALT_F8                0x6F00
  105. #define ALT_F9                0x7000
  106. #define ALT_F10               0x7100
  107. #define ALT_F11               0x8B00
  108. #define ALT_F12               0x8C00
  109.  
  110. #define SHIFT_F1              0x5400
  111. #define SHIFT_F2              0x5500
  112. #define SHIFT_F3              0x5600
  113. #define SHIFT_F4              0x5700
  114. #define SHIFT_F5              0x5800
  115. #define SHIFT_F6              0x5900
  116. #define SHIFT_F7              0x5A00
  117. #define SHIFT_F8              0x5B00
  118. #define SHIFT_F9              0x5C00
  119. #define SHIFT_F10             0x5D00
  120. #define SHIFT_F11             0x8700
  121. #define SHIFT_F12             0x8800
  122.  
  123. #define ALT_A                 0x1E00
  124. #define ALT_B                 0x3000
  125. #define ALT_C                 0x2E00
  126. #define ALT_D                 0x2000
  127. #define ALT_E                 0x1200
  128. #define ALT_F                 0x2100
  129. #define ALT_G                 0x2200
  130. #define ALT_H                 0x2300
  131. #define ALT_I                 0x1700
  132. #define ALT_J                 0x2400
  133. #define ALT_K                 0x2500
  134. #define ALT_L                 0x2600
  135. #define ALT_M                 0x3200
  136. #define ALT_N                 0x3100
  137. #define ALT_O                 0x1800
  138. #define ALT_P                 0x1900
  139. #define ALT_Q                 0x1000
  140. #define ALT_R                 0x1300
  141. #define ALT_S                 0x1F00
  142. #define ALT_T                 0x1400
  143. #define ALT_U                 0x1600
  144. #define ALT_V                 0x2F00
  145. #define ALT_W                 0x1100
  146. #define ALT_X                 0x2D00
  147. #define ALT_Y                 0x1500
  148. #define ALT_Z                 0x2C00
  149. #define ALT_1                 0x7800
  150. #define ALT_2                 0x7900
  151. #define ALT_3                 0x7A00
  152. #define ALT_4                 0x7B00
  153. #define ALT_5                 0x7C00
  154. #define ALT_6                 0x7D00
  155. #define ALT_7                 0x7E00
  156. #define ALT_8                 0x7F00
  157. #define ALT_9                 0x8000
  158. #define ALT_0                 0x8100
  159. #define ALT_HYPHEN            0x2900
  160. #define ALT_MINUS             0x8200
  161.  
  162. #define CTRL_A                0x1E01
  163. #define CTRL_B                0x3002
  164. #define CTRL_C                0x2E03
  165. #define CTRL_D                0x2004
  166. #define CTRL_E                0x1205
  167. #define CTRL_F                0x2106
  168. #define CTRL_G                0x2207
  169. #define CTRL_H                0x2308
  170. #define CTRL_I                0x1709
  171. #define CTRL_J                0x240A
  172. #define CTRL_K                0x250B
  173. #define CTRL_L                0x260C
  174. #define CTRL_M                0x320D
  175. #define CTRL_N                0x310E
  176. #define CTRL_O                0x180F
  177. #define CTRL_P                0x1910
  178. #define CTRL_Q                0x1011
  179. #define CTRL_R                0x1312
  180. #define CTRL_S                0x1F13
  181. #define CTRL_T                0x1414
  182. #define CTRL_U                0x1615
  183. #define CTRL_V                0x2F16
  184. #define CTRL_W                0x1117
  185. #define CTRL_X                0x2D18
  186. #define CTRL_Y                0x1519
  187. #define CTRL_Z                0x2C1A
  188.